<?php
include_once 'structs.php';

function sayHello($name){
    $salutation="Ciao ".$name.", saluti a casa !";
    return $salutation;
}

function add($params){
	$res=$params->a+$params->b;
	return $res;
}

function mult($params){
	$res=$params->a*$params->b;
	return $res;
}

ini_set("soap.wsdl_cache_enabled", "0");
$server= new SoapServer("test.wsdl");
$server->addFunction("sayHello");
$server->addFunction("add");
$server->addFunction("mult");
$server->handle();

?>
